<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>이미지 업로드</title>

<link rel="stylesheet" href="<%=cp%>/data/css/style.css" type="text/css">
<script type="text/javascript" src="<%=cp%>/data/js/util.js"></script>

<script type="text/javascript">

	function sendIt(){
		
		f = document.myForm;
		
		str = f.subject.value;
		str = str.trim();
		if(!str){
			alert("\n제목을 입력하세요.");
			f.subject.focus();
			return;
		}
		f.subject.value = str;
		
		str = f.upload.value;
		str = str.trim();
		if(!str){
			alert("\n업로드할 이미지를 선택하세요.");
			f.upload.focus();
			return;
		}
		f.upload.value = str;
		
		f.action = "<%=cp%>/production/write.action";
		f.submit();
		
	}
</script>

</head>
<body topmargin="20" marginwidth="20" leftmargin="20" marginheight="20"
	bgcolor="#ffffff" onload="document.myForm.subject.focus();">

<table width="560" border="2" cellspacing="0" cellpadding="0" bordercolor="#d6d4a6"
	align="center">
	<tr height="40">
		<td style="padding-left: 20px;">
			<b>이미지 업로드</b>
		</td>
	</tr>
</table>
<br/>
<form action="" name="myForm" method="post" enctype="multipart/form-data">
<table width="560" border="0" cellpadding="3" cellspacing="0" align="center">
	<tr><td colspan="2" class="line3" bgcolor="#dbdbdb" align="center"></td></tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			상&nbsp;&nbsp;&nbsp;&nbsp;품
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="text" name="name" size="74" maxlength="100" class="boxTF"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			가&nbsp;&nbsp;&nbsp;&nbsp;격
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="text" name="price" size="74" maxlength="100" class="boxTF"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			제&nbsp;&nbsp;&nbsp;&nbsp;목
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="text" name="subject" size="74" maxlength="100" class="boxTF"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			지&nbsp;&nbsp;&nbsp;&nbsp;역
		</td>
		<td width="70%" style="padding-left: 10px;">
			<!-- <input type="text" name="productionLocal" size="74" maxlength="100" class="boxTF"/> -->
			<select name="productionLocal">
				<option value="서울">서울</option>
				<option value="경기">경기</option>
				<option value="강원">강원</option>
				<option value="제주도">제주도</option>
			</select>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			분&nbsp;&nbsp;&nbsp;&nbsp;류
		</td>
		<td width="70%" style="padding-left: 10px;">
			<!-- <input type="text" name="productionCategory" size="74" maxlength="100" class="boxTF"/> -->
			<select name="productionCategory">
				<option value="옷">옷</option>
				<option value="신발">신발</option>
				<option value="화장품">화장품</option>
				<option value="스포츠용품">스포츠용품</option>
			</select>
		</td>
	</tr>

	<tr><td colspan="2" class="line1" bgcolor="#dbdbdb"></td></tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			최대수량
		</td>
		
		<td width="600px">
			<input type="text" name="max_qty">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			1인당 구매가능수량
		</td>
		
		<td>
			<input type="text" name="pp_qty">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			택배사
		</td>
		
		<td>
			<input type="text" name="delivery_company">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			배송비여부
		</td>
		
		<td>
			<input type="text" name="delivery_price">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			일회배송 최대수량
		</td>
		
		<td>
			<input type="text" name="delivery_maxqty">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">			
			배송방식
		</td>
		
		<td>
			<input type="text" name="delivery_method">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">			
			브랜드
		</td>
		
		<td>
			<input type="text" name="brand">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">			
			원산지
		</td>
		
		<td>
			<input type="text" name="made_country">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">			
			소재
		</td>
		
		<td>
			<input type="text" name="made_stuff">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">			
			세탁방법
		</td>
		
		<td>
			<input type="text" name="clean_method">
		</td>
	</tr>
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">			
			이벤트
		</td>
		
		<td>
			<textarea rows="10" cols="60"></textarea>
		</td>
	</tr>

	
	
	
	
	
	
	
	
	
	
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload1" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload2" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload3" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload4" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload5" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload6" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload7" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload8" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload9" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload10" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload11" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload12" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload13" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload14" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload15" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload16" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload17" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload18" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload19" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr>
		<td width="30%" height="30" bgcolor="#eeeeee" style="padding-left: 20px;">
			첨부파일
		</td>
		<td width="70%" style="padding-left: 10px;">
			<input type="file" name="upload20" size="58" maxlength="100" class="boxTF"
			style="height: 20px;"/>
		</td>
	</tr>
	<tr><td colspan="2" class="line3" bgcolor="#dbdbdb" align="center"></td></tr>

</table>

<table width="560" border="0" cellpadding="3" cellspacing="0" align="center">
	<tr align="center">
		<td height="40">
			<input type="hidden" name="mode" value="save"/>
			
			<input type="button" value=" 등록하기 " class="btn1" onclick="sendIt();"/>
			<input type="reset" value=" 다시입력 " class="btn1"
			onclick="document.myForm.name.focus();"/>
			<input type="button" value=" 작성취소 " class="btn1"
			onclick="javascript:location.href='<%=cp%>/production/list.action';"/>
		</td>
	</tr>
</table>

</form>

</body>
</html>